<a href="Javascript:void(0);" onclick="return post_image(); ">sdsd</a>
<script>

function post_image () {
    var data = new Array();
    data['message'] = 'hello world';
    data['url'] = 'http://tuyetdenbatngo.vn/static/uploads/baiviet/1354840529_337719.jpg';
    
    FB.api('/me/photos', 'post', data, function(response){
        if (!response || response.error) {
            alert('Error occurred');
        } else {
            alert('Post ID: ' + response.id);
        }
    }); 
    return false;
}
</script>